package com.yhy.common.wechat.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * wechat mini app properties
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wx.ma")
public class WxMaProperties {

    /**
     * 多个公众号配置信息
     */
    private List<MaConfig> configs;

    @Data
    public static class MaConfig {
        /**
         * 设置微信小程序的appid
         */
        private String appId;
        /**
         * 设置微信小程序的app secret
         */
        private String secret;
    }
}
